#include "gswinceex.h"
#include <ctype.h>

HRGN WINAPI CreatePolygonRgn( __in_ecount(cPoint) CONST POINT *pptl, __in int cPoint, __in int iMode )
{
	return HRGN();
}

int stricmp( const char *s1, const char *s2 )
{
	while (toupper(*s1) == toupper(*s2))
	{
		if (*s1 == 0)
			return 0;
		s1++;
		s2++;
	}
	return toupper(*(unsigned const char *)s1) - toupper(*(unsigned const char *)(s2));
}

int strnicmp( const char *s1, const char *s2, size_t n )
{

	if (n == 0)
		return 0;
	do {
		if (toupper(*s1) != toupper(*s2++))
			return toupper(*(unsigned const char *)s1) - toupper(*(unsigned const char *)--s2);
		if (*s1++ == 0)
			break;
	} while (--n != 0);
	return 0;
}

char * strdup( const char *s )
{
	char *p = (char*)malloc(strlen(s) + 1);
	if(p) { strcpy(p, s); }
	return p;
}

// int MulDiv( int nNumber, int nNumerator,int nDenominator )
// {
// 	return (nNumber*nNumerator+nDenominator/2)/nDenominator;
// }

